package com.sl.hx.shop.http;

import java.io.Serializable;

/**
 * 服务端返回的数据的解析基类
 * 根据实际需求更改
 *
 * Created by hwg on 2017/12/20.
 */

public class HttpResult<T> implements Serializable{

    private int Code;
    private String Msg;

    private T Data;


    public int getCode() {
        return Code;
    }

    public void setCode(int code) {
        this.Code = code;
    }

    public String getMsg() {
        return Msg;
    }

    public void setMsg(String msg) {
        this.Msg = msg;
    }

    public T getData() {
        return Data;
    }

    public void setData(T data) {
        this.Data = data;
    }

    @Override
    public String toString() {
        return "BaseBean{" +
                "code='" + Code + '\'' +
                ", msg='" + Msg + '\'' +
                ", data=" + Data +
                '}';
    }
}
